package com.yykj.hospital.server.model.repository;

import com.yykj.hospital.server.model.entity.DoctorArticleInterest;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface DoctorArticleInterestRepository extends JpaRepository<DoctorArticleInterest,Integer> {
    List<DoctorArticleInterest> findAllByDoctorId(String doctorId);
    DoctorArticleInterest findFirstByDoctorIdAndArticleId(String doctorId,Integer articleId);
}
